package extends2constructor;

public class Teacher extends Man {
    private String object;



    public Teacher(String name,  int age, String object) {
        //为对象中包含父类这部分的成员变量进行赋值
        //必须写在第一行
        super(name,age);//调用父类有参构造器

        this.object = object;

    }
    public Teacher(){}



    public String getObject() {
        return object;
    }

    public void setObject(String object) {
        this.object = object;
    }
}
